package com.huabo.system.oracle.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.code.ORDER;

import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "TBL_FLOWDES")
@ApiModel(value="TblFlowdes")
public class TblFlowdes {

    @TableId("FLOWDESID")
    @KeySql(sql = "select HIBERNATE_SEQUENCE.nextval from dual", order= ORDER.DEFAULT)
    private BigDecimal flowdesid;
    @Transient
    private TblFlow tblFlow;
    @TableField("PROCEDURENUMBER")
    private String procedurenumber;
    @TableField("PROCEDURENAME")
    private String procedurename;
    @TableField("DEPARTINCHARGE")
    private String departincharge;
    @TableField("PROCEDUREDES")
    private String proceduredes;
    @TableField("MEMO")
    private String memo;
    @TableField("ATTACHMENT")
    private String attachment;
    @TableField("POSITION")
    private Integer position;
}
